package com.sright.bcard.mini.web.controller;

import com.sright.bcard.common.biz.manager.ContentCheckManager;
import com.sright.bcard.common.service.share.dto.request.TextCheckRequest;
import com.sright.bcard.content.share.service.TextCheckService;
import com.sright.common.response.SrightResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedList;
import java.util.List;

@RestController
@RequestMapping("/test")
@Slf4j
public class TestController {
    @Autowired
    ContentCheckManager contentCheckManager;

    @Autowired
    TextCheckService textCheckService;

    @GetMapping("/test")
    public SrightResponse getTest(@RequestParam(value = "content") String content) {
//        String result =contentCheckManager.textCheck(content);
//        List<String> list = new LinkedList<>();
//        list.add(content);
//        contentCheckManager.imageCheck(list);
        TextCheckRequest request = new TextCheckRequest();
        request.setUserId(1L);
        request.setCompany("公司");
        request.setAddress("习大大");
        return SrightResponse.defaultSuccess();
    }
}
